$(document).ready(function() {
    $("#generatePlayer").click(function() {
        var myPlayer = new Player(generateName());
        myPlayer.generate();

        $("#player").html(myPlayer.printHTML());
    });
});